package com.wg.dome.operation;

import com.wg.core.net.OperationRequest;
import com.wg.core.annotation.DataMember;
import com.wg.net.rpc.Operation;

/**
 * 招募英雄请求
 */
public class RecruitHeroRequest extends Operation {

    @DataMember(code = 1)
    private long playerId;

    @DataMember(code = 2)
    private byte type;

    public RecruitHeroRequest(OperationRequest request) {
        super(request);
    }

    public long getPlayerId() {
        return playerId;
    }

    public void setPlayerId(long playerId) {
        this.playerId = playerId;
    }

    public byte getType() {
        return type;
    }

    public void setType(byte type) {
        this.type = type;
    }
}

